/**
 * Copyright (c) 2016-2019 优博信息科技 All rights reserved.
 *
 * https://www.jnyoubo.com
 *
 * 版权所有，侵权必究！
 */

package com.youbo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.youbo.dao.OrderMxDao;
import com.youbo.entity.OrderMxEntity;
import com.youbo.service.OrderMxService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("orderMxService")
public class OrderMxServiceImpl extends ServiceImpl<OrderMxDao, OrderMxEntity> implements OrderMxService {

    @Override
    public OrderMxEntity getMxByWhere1(String type, String id) {
        List<OrderMxEntity> list=list(new QueryWrapper<OrderMxEntity>()
                .eq("type",type)
                .eq("id",id));
        if(null==list||list.size()<=0){
            return null;
        }
        return list.get(0);
    }
}
